home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / new device drivers / PCI Driver Sample / NCR_DriverProject / Src / InitializeInterrupts.c < prev    next >
MacBinary  |  1995-07-24  |  3.8 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 24 17:34:44 1995, modified Mon Jul 24 17:34:44 1995, creator 'MPCC', type ASCII, 3179 bytes "InitializeInterrupts.c" , at 0xceb 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 49 6e 69 74 69 61 | 6c 69 7a 65 49 6e 74 65 |..Initia|lizeInte|
|00000010| 72 72 75 70 74 73 2e 63 | 00 00 00 00 00 00 00 00 |rrupts.c|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 0c 6b 00 | 00 01 9a ac 39 c2 74 ac |......k.|....9.t.|
|00000060| 39 c2 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9.t.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c2 84 00 00 |........|........|
|00000080| 2f 2a 09 09 09 09 09 09 | 09 09 09 49 6e 69 74 69 |/*......|...Initi|
|00000090| 61 6c 69 7a 65 49 6e 74 | 65 72 72 75 70 74 73 2e |alizeInt|errupts.|
|000000a0| 63 09 09 09 09 09 09 09 | 2a 2f 0d 2f 2a 0d 20 2a |c.......|*/./*. *|
|000000b0| 20 49 6e 69 74 69 61 6c | 69 7a 65 49 6e 74 65 72 | Initial|izeInter|
|000000c0| 72 75 70 74 73 2e 63 0d | 20 2a 20 43 6f 70 79 72 |rupts.c.| * Copyr|
|000000d0| 69 67 68 74 20 a9 20 31 | 39 39 34 20 41 70 70 6c |ight . 1|994 Appl|
|000000e0| 65 20 43 6f 6d 70 75 74 | 65 72 20 49 6e 63 2e 20 |e Comput|er Inc. |
|000000f0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00000100| 76 65 64 2e 0d 20 2a 0d | 20 2a 2f 0d 2f 2a 09 2e |ved.. *.| */./*..|
|00000110| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000120| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000130| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000150| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000160| 5f 5f 5f 2e 0d 20 20 09 | 7c 20 54 68 69 73 20 66 |___.. .|| This f|
|00000170| 75 6e 63 74 69 6f 6e 20 | 72 65 74 72 69 65 76 65 |unction |retrieve|
|00000180| 73 20 74 68 65 20 69 6e | 74 65 72 72 75 70 74 2d |s the in|terrupt-|
|00000190| 73 65 72 76 69 63 65 20 | 70 72 6f 70 65 72 74 79 |service |property|
|000001a0| 20 66 72 6f 6d 20 74 68 | 65 20 4e 61 6d 65 20 52 | from th|e Name R|
|000001b0| 65 67 69 73 74 72 79 09 | 09 7c 0d 20 20 09 7c 20 |egistry.|.|. .| |
|000001c0| 49 74 20 74 68 65 6e 20 | 69 6e 73 74 61 6c 6c 73 |It then |installs|
|000001d0| 20 61 20 70 72 69 6d 61 | 72 79 20 69 6e 74 65 72 | a prima|ry inter|
|000001e0| 72 75 70 74 20 73 65 72 | 76 69 63 65 20 72 6f 75 |rupt ser|vice rou|
|000001f0| 74 69 6e 65 20 61 6e 64 | 20 65 6e 61 62 6c 65 73 |tine and| enables|
|00000200| 20 69 6e 74 65 72 72 75 | 70 74 73 2e 09 09 7c 0d | interru|pts...|.|
|00000210| 20 20 09 7c 20 49 74 20 | 69 73 20 69 6e 64 65 70 | .| It |is indep|
|00000220| 65 6e 64 65 6e 74 20 6f | 66 20 74 68 65 20 73 70 |endent o|f the sp|
|00000230| 65 63 69 66 69 63 73 20 | 6f 66 20 74 68 65 20 66 |ecifics |of the f|
|00000240| 72 61 6d 65 77 6f 72 6b | 20 73 61 6d 70 6c 65 20 |ramework| sample |
|00000250| 64 72 69 76 65 72 2e 09 | 09 09 09 7c 0d 09 2e 5f |driver..|...|..._|
|00000260| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000270| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000280| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002b0| 5f 5f 2e 0d 2a 2f 0d 0d | 23 69 6e 63 6c 75 64 65 |__..*/..|#include|
|000002c0| 20 22 4e 43 52 44 72 69 | 76 65 72 50 72 69 76 61 | "NCRDri|verPriva|
|000002d0| 74 65 2e 68 22 20 0d 0d | 0d 2f 2a 20 2a 20 2a 20 |te.h" ..|./* * * |
|000002e0| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|000002f0| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00000300| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00000310| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00000320| 2a 20 2a 20 2a 20 2a 20 | 2a 20 2a 20 2a 20 2a 20 |* * * * |* * * * |
|00000330| 2a 20 2a 0d 20 2a 20 47 | 65 74 44 65 76 69 63 65 |* *. * G|etDevice|
|00000340| 49 6e 74 65 72 72 75 70 | 74 50 72 6f 70 65 72 74 |Interrup|tPropert|
|00000350| 79 49 6e 66 6f 20 72 65 | 74 72 69 65 76 65 73 20 |yInfo re|trieves |
|00000360| 74 68 65 20 69 6e 74 65 | 72 72 75 70 74 2d 73 65 |the inte|rrupt-se|
|00000370| 72 76 69 63 65 20 70 72 | 6f 70 65 72 74 79 20 69 |rvice pr|operty i|
|00000380| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0d 20 2a 20 66 72 |nformati|on. * fr|
|00000390| 6f 6d 20 74 68 65 20 53 | 79 73 74 65 6d 20 52 65 |om the S|ystem Re|
|000003a0| 67 69 73 74 72 79 2e 20 | 49 66 20 73 75 63 63 65 |gistry. |If succe|
|000003b0| 73 73 66 75 6c 2c 20 69 | 74 20 69 6e 73 74 61 6c |ssful, i|t instal|
|000003c0| 6c 73 20 6f 75 72 20 70 | 72 69 6d 61 72 79 20 69 |ls our p|rimary i|
|000003d0| 6e 74 65 72 72 75 70 74 | 20 73 65 72 76 69 63 65 |nterrupt| service|
|000003e0| 0d 20 2a 20 72 6f 75 74 | 69 6e 65 20 28 50 43 49 |. * rout|ine (PCI|
|000003f0| 49 6e 74 65 72 72 75 70 | 74 53 65 72 76 69 63 65 |Interrup|tService|
|00000400| 52 6f 75 74 69 6e 65 29 | 0d 20 2a 2f 0d 4f 53 45 |Routine)|. */.OSE|
|00000410| 72 72 0d 49 6e 73 74 61 | 6c 6c 44 72 69 76 65 72 |rr.Insta|llDriver|
|00000420| 49 6e 74 65 72 72 75 70 | 74 46 75 6e 63 74 69 6f |Interrup|tFunctio|
|00000430| 6e 28 0d 09 09 52 65 67 | 45 6e 74 72 79 49 44 50 |n(...Reg|EntryIDP|
|00000440| 74 72 09 09 09 72 65 67 | 45 6e 74 72 79 49 44 50 |tr...reg|EntryIDP|
|00000450| 74 72 2c 09 09 09 2f 2a | 20 44 72 69 76 65 72 27 |tr,.../*| Driver'|
|00000460| 73 20 4e 61 6d 65 20 52 | 65 67 69 73 74 65 72 79 |s Name R|egistery|
|00000470| 20 49 44 09 2a 2f 0d 09 | 09 49 6e 74 65 72 72 75 | ID.*/..|.Interru|
|00000480| 70 74 48 61 6e 64 6c 65 | 72 09 09 69 6e 74 65 72 |ptHandle|r..inter|
|00000490| 72 75 70 74 48 61 6e 64 | 6c 65 72 46 75 6e 63 74 |ruptHand|lerFunct|
|000004a0| 69 6f 6e 2c 20 2f 2a 20 | 46 75 6e 63 74 69 6f 6e |ion, /* |Function|
|000004b0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 09 09 2a 2f 0d | to inst|all..*/.|
|000004c0| 09 09 49 6e 74 65 72 72 | 75 70 74 53 65 74 4d 65 |..Interr|uptSetMe|
|000004d0| 6d 62 65 72 09 09 2a 69 | 6e 74 65 72 72 75 70 74 |mber..*i|nterrupt|
|000004e0| 53 65 74 4d 65 6d 62 65 | 72 50 74 72 2c 09 2f 2a |SetMembe|rPtr,./*|
|000004f0| 20 47 65 74 73 20 69 6e | 74 65 72 72 75 70 74 20 | Gets in|terrupt |
|00000500| 73 65 74 20 6d 65 6d 62 | 65 72 09 2a 2f 0d 09 09 |set memb|er.*/...|
|00000510| 76 6f 69 64 09 09 09 09 | 09 2a 2a 72 65 66 43 6f |void....|.**refCo|
|00000520| 6e 2c 09 09 09 09 2f 2a | 20 47 65 74 73 20 6f 6c |n,..../*| Gets ol|
|00000530| 64 20 52 65 66 43 6f 6e | 09 09 09 09 2a 2f 0d 09 |d RefCon|....*/..|
|00000540| 09 49 6e 74 65 72 72 75 | 70 74 48 61 6e 64 6c 65 |.Interru|ptHandle|
|00000550| 72 09 09 2a 6f 6c 64 48 | 61 6e 64 6c 65 72 46 75 |r..*oldH|andlerFu|
|00000560| 6e 63 74 69 6f 6e 2c 09 | 2f 2a 20 47 65 74 73 20 |nction,.|/* Gets |
|00000570| 6f 6c 64 20 69 6e 74 65 | 72 72 72 75 70 74 20 68 |old inte|rrrupt h|
|00000580| 61 6e 64 6c 65 72 09 2a | 2f 0d 09 09 49 6e 74 65 |andler.*|/...Inte|
|00000590| 72 72 75 70 74 45 6e 61 | 62 6c 65 72 09 09 2a 6f |rruptEna|bler..*o|
|000005a0| 6c 64 45 6e 61 62 6c 65 | 46 75 6e 63 74 69 6f 6e |ldEnable|Function|
|000005b0| 2c 09 09 2f 2a 20 47 65 | 74 73 20 6f 6c 64 20 65 |,../* Ge|ts old e|
|000005c0| 6e 61 62 6c 65 72 09 09 | 09 09 2a 2f 0d 09 09 49 |nabler..|..*/...I|
|000005d0| 6e 74 65 72 72 75 70 74 | 44 69 73 61 62 6c 65 72 |nterrupt|Disabler|
|000005e0| 09 09 2a 6f 6c 64 44 69 | 73 61 62 6c 65 46 75 6e |..*oldDi|sableFun|
|000005f0| 63 74 69 6f 6e 09 09 2f | 2a 20 47 65 74 73 20 6f |ction../|* Gets o|
|00000600| 6c 64 20 64 69 73 61 62 | 6c 65 72 09 09 09 2a 2f |ld disab|ler...*/|
|00000610| 0d 09 29 0d 7b 0d 09 09 | 4f 53 45 72 72 09 09 09 |..).{...|OSErr...|
|00000620| 09 09 73 74 61 74 75 73 | 3b 0d 09 09 4f 53 53 74 |..status|;...OSSt|
|00000630| 61 74 75 73 09 09 09 09 | 6f 73 53 74 61 74 75 73 |atus....|osStatus|
|00000640| 3b 0d 09 09 52 65 67 50 | 72 6f 70 65 72 74 79 56 |;...RegP|ropertyV|
|00000650| 61 6c 75 65 53 69 7a 65 | 09 73 69 7a 65 3b 0d 09 |alueSize|.size;..|
|00000660| 09 53 74 72 69 6e 67 50 | 74 72 09 09 09 09 66 61 |.StringP|tr....fa|
|00000670| 69 6c 75 72 65 4d 73 67 | 3b 0d 0d 09 09 54 72 61 |ilureMsg|;....Tra|
|00000680| 63 65 28 49 6e 73 74 61 | 6c 6c 44 72 69 76 65 72 |ce(Insta|llDriver|
|00000690| 49 6e 74 65 72 72 75 70 | 74 46 75 6e 63 74 69 6f |Interrup|tFunctio|
|000006a0| 6e 29 3b 0d 09 09 66 61 | 69 6c 75 72 65 4d 73 67 |n);...fa|ilureMsg|
|000006b0| 20 3d 20 4e 55 4c 4c 3b | 0d 09 09 73 69 7a 65 20 | = NULL;|...size |
|000006c0| 3d 20 73 69 7a 65 6f 66 | 20 28 49 6e 74 65 72 72 |= sizeof| (Interr|
|000006d0| 75 70 74 53 65 74 4d 65 | 6d 62 65 72 29 3b 0d 09 |uptSetMe|mber);..|
|000006e0| 09 73 74 61 74 75 73 20 | 3d 20 52 65 67 69 73 74 |.status |= Regist|
|000006f0| 72 79 50 72 6f 70 65 72 | 74 79 47 65 74 28 0d 09 |ryProper|tyGet(..|
|00000700| 09 09 09 09 72 65 67 45 | 6e 74 72 79 49 44 50 74 |....regE|ntryIDPt|
|00000710| 72 2c 0d 09 09 09 09 09 | 6b 49 53 54 50 72 6f 70 |r,......|kISTProp|
|00000720| 65 72 74 79 4e 61 6d 65 | 2c 0d 09 09 09 09 09 28 |ertyName|,......(|
|00000730| 52 65 67 50 72 6f 70 65 | 72 74 79 56 61 6c 75 65 |RegPrope|rtyValue|
|00000740| 20 2a 29 20 69 6e 74 65 | 72 72 75 70 74 53 65 74 | *) inte|rruptSet|
|00000750| 4d 65 6d 62 65 72 50 74 | 72 2c 0d 09 09 09 09 09 |MemberPt|r,......|
|00000760| 26 73 69 7a 65 0d 09 09 | 09 09 29 3b 0d 09 09 43 |&size...|..);...C|
|00000770| 68 65 63 6b 53 74 61 74 | 75 73 28 73 74 61 74 75 |heckStat|us(statu|
|00000780| 73 2c 20 22 5c 70 47 65 | 74 20 69 6e 74 65 72 72 |s, "\pGe|t interr|
|00000790| 75 70 74 20 73 65 74 20 | 70 72 6f 70 65 72 74 79 |upt set |property|
|000007a0| 22 29 3b 0d 09 09 69 66 | 20 28 73 74 61 74 75 73 |");...if| (status|
|000007b0| 20 21 3d 20 6e 6f 45 72 | 72 29 0d 09 09 09 66 61 | != noEr|r)....fa|
|000007c0| 69 6c 75 72 65 4d 73 67 | 20 3d 20 22 5c 70 43 61 |ilureMsg| = "\pCa|
|000007d0| 6e 27 74 20 67 65 74 20 | 69 6e 74 65 72 72 75 70 |n't get |interrup|
|000007e0| 74 20 73 65 74 20 6d 65 | 6d 62 65 72 22 3b 0d 09 |t set me|mber";..|
|000007f0| 09 69 66 20 28 73 74 61 | 74 75 73 20 3d 3d 20 6e |.if (sta|tus == n|
|00000800| 6f 45 72 72 29 20 7b 0d | 09 09 09 2f 2a 0d 09 09 |oErr) {.|.../*...|
|00000810| 09 20 2a 20 46 65 74 63 | 68 20 74 68 65 20 63 75 |. * Fetc|h the cu|
|00000820| 72 72 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 73 20 |rrent fu|nctions |
|00000830| 66 6f 72 20 74 68 69 73 | 20 69 6e 74 65 72 72 75 |for this| interru|
|00000840| 70 74 20 73 65 74 2e 0d | 09 09 09 20 2a 2f 0d 09 |pt set..|... */..|
|00000850| 09 09 6f 73 53 74 61 74 | 75 73 20 3d 20 47 65 74 |..osStat|us = Get|
|00000860| 49 6e 74 65 72 72 75 70 | 74 46 75 6e 63 74 69 6f |Interrup|tFunctio|
|00000870| 6e 73 28 0d 09 09 09 09 | 09 09 69 6e 74 65 72 72 |ns(.....|..interr|
|00000880| 75 70 74 53 65 74 4d 65 | 6d 62 65 72 50 74 72 2d |uptSetMe|mberPtr-|
|00000890| 3e 73 65 74 49 44 2c 0d | 09 09 09 09 09 09 69 6e |>setID,.|......in|
|000008a0| 74 65 72 72 75 70 74 53 | 65 74 4d 65 6d 62 65 72 |terruptS|etMember|
|000008b0| 50 74 72 2d 3e 6d 65 6d | 62 65 72 2c 0d 09 09 09 |Ptr->mem|ber,....|
|000008c0| 09 09 09 72 65 66 43 6f | 6e 2c 0d 09 09 09 09 09 |...refCo|n,......|
|000008d0| 09 6f 6c 64 48 61 6e 64 | 6c 65 72 46 75 6e 63 74 |.oldHand|lerFunct|
|000008e0| 69 6f 6e 2c 0d 09 09 09 | 09 09 09 6f 6c 64 45 6e |ion,....|...oldEn|
|000008f0| 61 62 6c 65 46 75 6e 63 | 74 69 6f 6e 2c 0d 09 09 |ableFunc|tion,...|
|00000900| 09 09 09 09 6f 6c 64 44 | 69 73 61 62 6c 65 46 75 |....oldD|isableFu|
|00000910| 6e 63 74 69 6f 6e 0d 09 | 09 09 09 09 29 3b 0d 09 |nction..|....);..|
|00000920| 09 09 43 68 65 63 6b 53 | 74 61 74 75 73 28 6f 73 |..CheckS|tatus(os|
|00000930| 53 74 61 74 75 73 2c 20 | 22 5c 70 47 65 74 49 6e |Status, |"\pGetIn|
|00000940| 74 65 72 72 75 70 74 46 | 75 6e 63 74 69 6f 6e 73 |terruptF|unctions|
|00000950| 22 29 3b 0d 09 09 09 69 | 66 20 28 6f 73 53 74 61 |");....i|f (osSta|
|00000960| 74 75 73 20 21 3d 20 6e | 6f 45 72 72 29 20 7b 0d |tus != n|oErr) {.|
|00000970| 09 09 09 09 73 74 61 74 | 75 73 20 3d 20 6f 73 53 |....stat|us = osS|
|00000980| 74 61 74 75 73 3b 0d 09 | 09 09 09 66 61 69 6c 75 |tatus;..|...failu|
|00000990| 72 65 4d 73 67 20 3d 20 | 22 5c 70 47 65 74 49 6e |reMsg = |"\pGetIn|
|000009a0| 74 65 72 72 75 70 74 46 | 75 6e 63 74 69 6f 6e 73 |terruptF|unctions|
|000009b0| 20 66 61 69 6c 65 64 22 | 3b 0d 09 09 09 7d 0d 09 | failed"|;....}..|
|000009c0| 09 7d 0d 09 09 69 66 20 | 28 73 74 61 74 75 73 20 |.}...if |(status |
|000009d0| 3d 3d 20 6e 6f 45 72 72 | 29 20 7b 0d 09 09 09 2f |== noErr|) {..../|
|000009e0| 2a 0d 09 09 09 20 2a 20 | 49 6e 73 74 61 6c 6c 20 |*.... * |Install |
|000009f0| 6f 75 72 20 69 6e 74 65 | 72 72 75 70 74 20 66 75 |our inte|rrupt fu|
|00000a00| 6e 63 74 69 6f 6e 20 66 | 6f 72 20 74 68 69 73 20 |nction f|or this |
|00000a10| 73 65 74 20 61 6e 64 20 | 6d 65 6d 62 65 72 2e 0d |set and |member..|
|00000a20| 09 09 09 20 2a 2f 0d 09 | 09 09 6f 73 53 74 61 74 |... */..|..osStat|
|00000a30| 75 73 20 3d 20 49 6e 73 | 74 61 6c 6c 49 6e 74 65 |us = Ins|tallInte|
|00000a40| 72 72 75 70 74 46 75 6e | 63 74 69 6f 6e 73 28 0d |rruptFun|ctions(.|
|00000a50| 09 09 09 09 09 09 69 6e | 74 65 72 72 75 70 74 53 |......in|terruptS|
|00000a60| 65 74 4d 65 6d 62 65 72 | 50 74 72 2d 3e 73 65 74 |etMember|Ptr->set|
|00000a70| 49 44 2c 0d 09 09 09 09 | 09 09 69 6e 74 65 72 72 |ID,.....|..interr|
|00000a80| 75 70 74 53 65 74 4d 65 | 6d 62 65 72 50 74 72 2d |uptSetMe|mberPtr-|
|00000a90| 3e 6d 65 6d 62 65 72 2c | 0d 09 09 09 09 09 09 4e |>member,|.......N|
|00000aa0| 55 4c 4c 2c 09 09 09 09 | 09 09 09 2f 2a 20 52 65 |ULL,....|.../* Re|
|00000ab0| 66 43 6f 6e 20 2d 20 69 | 67 6e 6f 72 65 64 09 09 |fCon - i|gnored..|
|00000ac0| 09 09 2a 2f 0d 09 09 09 | 09 09 09 69 6e 74 65 72 |..*/....|...inter|
|00000ad0| 72 75 70 74 48 61 6e 64 | 6c 65 72 46 75 6e 63 74 |ruptHand|lerFunct|
|00000ae0| 69 6f 6e 2c 09 09 2f 2a | 20 4f 75 72 20 69 6e 74 |ion,../*| Our int|
|00000af0| 65 72 72 75 70 74 20 73 | 65 72 76 69 63 65 20 66 |errupt s|ervice f|
|00000b00| 75 6e 63 2e 09 2a 2f 0d | 09 09 09 09 09 09 4e 55 |unc..*/.|......NU|
|00000b10| 4c 4c 2c 09 09 09 09 09 | 09 09 2f 2a 20 4e 6f 20 |LL,.....|../* No |
|00000b20| 6e 65 77 20 69 6e 74 65 | 72 72 75 70 74 20 65 6e |new inte|rrupt en|
|00000b30| 61 62 6c 65 72 09 09 2a | 2f 0d 09 09 09 09 09 09 |abler..*|/.......|
|00000b40| 4e 55 4c 4c 09 09 09 09 | 09 09 09 2f 2a 20 4e 6f |NULL....|.../* No|
|00000b50| 20 6e 65 77 20 69 6e 74 | 65 72 72 75 70 74 20 64 | new int|errupt d|
|00000b60| 69 73 61 62 6c 65 72 09 | 2a 2f 0d 09 09 09 09 09 |isabler.|*/......|
|00000b70| 29 3b 0d 09 09 09 43 68 | 65 63 6b 53 74 61 74 75 |);....Ch|eckStatu|
|00000b80| 73 28 6f 73 53 74 61 74 | 75 73 2c 20 22 5c 70 49 |s(osStat|us, "\pI|
|00000b90| 6e 73 74 61 6c 6c 49 6e | 74 65 72 72 75 70 74 46 |nstallIn|terruptF|
|00000ba0| 75 6e 63 74 69 6f 6e 73 | 22 29 3b 0d 09 09 09 69 |unctions|");....i|
|00000bb0| 66 20 28 6f 73 53 74 61 | 74 75 73 20 21 3d 20 6e |f (osSta|tus != n|
|00000bc0| 6f 45 72 72 29 20 7b 0d | 09 09 09 09 73 74 61 74 |oErr) {.|....stat|
|00000bd0| 75 73 20 3d 20 6f 73 53 | 74 61 74 75 73 3b 0d 09 |us = osS|tatus;..|
|00000be0| 09 09 09 66 61 69 6c 75 | 72 65 4d 73 67 20 3d 20 |...failu|reMsg = |
|00000bf0| 22 5c 70 49 6e 73 74 61 | 6c 6c 49 6e 74 65 72 72 |"\pInsta|llInterr|
|00000c00| 75 70 74 46 75 6e 63 74 | 69 6f 6e 73 20 66 61 69 |uptFunct|ions fai|
|00000c10| 6c 65 64 22 3b 0d 09 09 | 09 7d 0d 09 09 7d 0d 09 |led";...|.}...}..|
|00000c20| 09 69 66 20 28 73 74 61 | 74 75 73 20 3d 3d 20 6e |.if (sta|tus == n|
|00000c30| 6f 45 72 72 29 09 09 09 | 09 09 09 09 2f 2a 20 53 |oErr)...|..../* S|
|00000c40| 75 63 63 65 73 73 3a 20 | 65 6e 61 62 6c 65 20 69 |uccess: |enable i|
|00000c50| 6e 74 65 72 72 75 70 74 | 73 09 2a 2f 0d 09 09 09 |nterrupt|s.*/....|
|00000c60| 28 2a 6f 6c 64 45 6e 61 | 62 6c 65 46 75 6e 63 74 |(*oldEna|bleFunct|
|00000c70| 69 6f 6e 29 28 2a 69 6e | 74 65 72 72 75 70 74 53 |ion)(*in|terruptS|
|00000c80| 65 74 4d 65 6d 62 65 72 | 50 74 72 2c 20 2a 72 65 |etMember|Ptr, *re|
|00000c90| 66 43 6f 6e 29 3b 0d 09 | 09 65 6c 73 65 20 7b 0d |fCon);..|.else {.|
|00000ca0| 09 09 09 50 75 62 6c 69 | 73 68 49 6e 69 74 46 61 |...Publi|shInitFa|
|00000cb0| 69 6c 75 72 65 4d 73 67 | 28 73 74 61 74 75 73 2c |ilureMsg|(status,|
|00000cc0| 20 66 61 69 6c 75 72 65 | 4d 73 67 29 3b 0d 09 09 | failure|Msg);...|
|00000cd0| 7d 0d 09 09 72 65 74 75 | 72 6e 20 28 73 74 61 74 |}...retu|rn (stat|
|00000ce0| 75 73 29 3b 0d 7d 0d 0d | 0d 0d 0d 00 00 00 00 00 |us);.}..|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000d10| 00 00 1f 6a 0e 4e 43 52 | 44 72 69 76 65 72 2e 72 |...j.NCR|Driver.r|
|00000d20| 73 72 63 72 02 00 00 00 | 72 73 72 63 52 53 45 44 |srcr....|rsrcRSED|
|00000d30| 16 49 6e 69 74 69 61 6c | 69 7a 65 49 6e 74 65 72 |.Initial|izeInter|
|00000d40| 72 75 70 74 73 2e 63 7a | 02 00 00 00 54 45 58 54 |rupts.cz|....TEXT|
|00000d50| 00 00 54 45 58 54 4d 50 | 43 43 01 00 ff ff ff ff |..TEXTMP|CC......|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 ab 8f 16 ab 00 00 | 0c 6b 00 00 01 9a 00 00 |........|.k......|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 14 00 00 00 1f 6a |........|.......j|
|00000d90| 0e 4e 43 52 44 72 69 76 | 65 72 2e 78 53 59 4d 72 |.NCRDriv|er.xSYMr|
|00000da0| 02 00 00 00 4d 50 53 59 | 4d 50 44 42 01 00 00 a0 |....MPSY|MPDB....|
|00000db0| 00 00 00 00 00 00 1f 80 | 00 00 00 02 10 00 00 02 |........|........|
|00000dc0| 20 00 00 00 00 00 00 00 | 00 00 00 00 ab 87 97 69 | .......|.......i|
|00000dd0| ab 8d b0 ce 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 ad 01 00 10 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 03 | 00 04 00 7c 00 0e 02 74 |........|...|...t|
|00000e30| 02 69 00 7c 00 0e 02 74 | 02 69 ab ac 15 b0 00 00 |.i.|...t|.i......|
|00000e40| 05 df 00 00 05 fa 00 00 | 02 37 01 00 00 00 00 04 |........|.7......|
|00000e50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000e60| 00 00 00 46 00 78 13 38 | 1d 04 00 00 00 1c 00 46 |...F.x.8|.......F|
|00000e70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000e80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000e90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+